package com.authine.cloudpivot.ext.listener;

import com.rabbitmq.client.CancelCallback;
import lombok.extern.slf4j.Slf4j;

import java.io.IOException;

/**
 * @ClassName MyCancelCallback
 * @Description: TODO
 * @Author fj
 * @Date 2021/7/29
 * @Version V1.0
 **/
@Slf4j
public class MyCancelCallback implements CancelCallback {
    @Override
    public void handle(String consumerTag) throws IOException {
        System.out.println("Customer Received '" + consumerTag + "'");
        log.info("consumerTag '" + consumerTag + "'");
    }
}
